import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'


// 解决同源策略问题，前端解决方式
// https://vitejs.dev/config/
export default defineConfig({
  plugins: [react()],
  server: {
    proxy: {
      '/api': {
        target: 'http://8.137.157.16:9002',
        changeOrigin: true,
        rewrite: (path) => path.replace(/^\/api/, ''),
      },

    }
  }


})
